package com.qishen.dubbo_consum.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qishen.dubbo_inter.inter.UserService;

import com.qishen.dubbo_inter.pojo.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 岐神~汤圆FengJY
 * @version 1.0
 * @description
 * @date 2021/10/20 18:52
 */
@RestController
public class UserController {

    @Reference(version = "1.1")
    private UserService userService;

    @RequestMapping ("/a/{id}")
  public User getUserId(@PathVariable String id){
      return userService.getUser(id);
  }
}
